import request from '@/utils/request'

// 查询承运商管理列表
export function listCarriermangement(query) {
  return request({
    url: '/carriermangement/carriermangement/list',
    method: 'get',
    params: query
  })
}

// 查询承运商管理详细
export function getCarriermangement(id) {
  return request({
    url: '/carriermangement/carriermangement/' + id,
    method: 'get'
  })
}

// 新增承运商管理
export function addCarriermangement(data) {
  return request({
    url: '/carriermangement/carriermangement',
    method: 'post',
    data: data
  })
}

// 修改承运商管理
export function updateCarriermangement(data) {
  return request({
    url: '/carriermangement/carriermangement',
    method: 'put',
    data: data
  })
}

// 删除承运商管理
export function delCarriermangement(id) {
  return request({
    url: '/carriermangement/carriermangement/' + id,
    method: 'delete'
  })
}
